<?php
use yii\helpers\Url;
?>

<form action="<?=Url::to(['user/update','id'=>$model['userId']])?>" method="post">
    <div>
        <input type="text" value="<?=$model['username']?>" name="username">
    </div>
    <div>
        <input type="text" value="<?=$model['password']?>" name="password">
    </div>
    <div>
        <input type="text" value="<?=$model['userImg']?>" name="userImg">
    </div>
    <div>
        <input type="submit" value="提交">
    </div>
</form>
